package com.chixing.day02;

import java.util.Arrays;

/**
 * @author Y2014188432
 */
public class Trst {
    public static void main(String[] args) {
        int[] arr1 = new int[6];
        arr1[0] = 1;
        arr1[1] = 2;
        arr1[2] = 3;
        arr1[3] = 4;
        arr1[4] = 5;
        arr1[5] = 55;
        //  1
        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i]+"  ");
        }
        // 2
        System.out.println();
        for ( int a: arr1) {
            System.out.print(a+"  ");
        }
        // 3
        System.out.println();
        System.out.println(Arrays.toString(arr1));
    }
}
